<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./TemplatePrincipal.xhtml">

            <ui:define name="top">
                <center>
                    <p:graphicImage value="/img/biblioteca.jpg  " width="1200" height="210"/>
                </center>
                Bienvenido <h:outputText value="#{accesBean.user}"/>
                <h:outputText value="#{accesBean.pass}"/>
            </ui:define>

            <ui:define name="left">
                <h:form>
                    <p:menu>  
                        <p:submenu label="Inicio">  
                            <p:menuitem value="Login" action="Login" icon="ui-icon-home"/>  

                        </p:submenu>  
                        <p:submenu label="Usuario">  
                            <p:menuitem value="Nuevo" action="UsuarioCrearEditar" icon="ui-icon-document"/>  
                            <p:menuitem value="Lista" action="UsuarioLista" icon="ui-icon-contact"/>    
                        </p:submenu>  
                        <p:submenu label="Autor">  
                            <p:menuitem value="Nuevo" action="AuthorCrearEditar" icon="ui-icon-document"/>  
                            <p:menuitem value="Lista" action="AutorLista" icon="ui-icon-contact"/>  
                        </p:submenu>  
                        <p:submenu label="Libro">  
                            <p:menuitem value="Nuevo" action="LibroCrearEditar" icon="ui-icon-document"/>  
                            <p:menuitem value="Lista" action="LibroLista" icon="ui-icon-contact"/>  
                        </p:submenu>
                        <p:submenu label="Prestamo">  
                            <p:menuitem value="Nuevo" action="PrestamoCrearEditar" icon="ui-icon-document"/>  
                            <p:menuitem value="Lista" action="PrestamoLista" icon="ui-icon-contact"/>  
                        </p:submenu>
                    </p:menu> 

                </h:form>

            </ui:define>

            <ui:define name="content">
                <p:panel header="Bienvenido">
                    holalallalalal
                    <h:form>
                        <p:accordionPanel>
                            <p:tab title="LIBROS">
                                <p:accordionPanel>
                                    <p:tab title="Ing. Sistemas Computacionales">
                                        <h:panelGrid columns="2" cellpadding="10">

                                            <p:tabView id="tabView">

                                                <p:tab id="tab1" title="Java">  
                                                    <h:panelGrid columns="2" cellpadding="10">  
                                                        <p:graphicImage id="tab1Img" value="/images/godfather/godfather1.jpg" />  
                                                        <h:outputText id="tab1Text"  
                                                                      value="El ballet." />  
                                                    </h:panelGrid>  
                                                </p:tab>  

                                                <p:tab id="tab2" title="C++">  
                                                    <h:panelGrid columns="2" cellpadding="10">  
                                                        <p:graphicImage id="tab2Img" value="/images/godfather/godfather2.jpg" />  
                                                        <h:outputText id="tab2Text" value="La salsa."/>  
                                                    </h:panelGrid>  
                                                </p:tab>                   
                                            </p:tabView>    
                                        </h:panelGrid>
                                    </p:tab>

                                </p:accordionPanel>
                            
                            <p:accordionPanel>
                                <p:tab title="Ing. Electronica">
                                    <h:panelGrid columns="2" cellpadding="10">

                                        <p:tabView id="tabView">

                                            <p:tab id="tab1" title="Circuitos electronicos">  
                                                <h:panelGrid columns="2" cellpadding="10">  
                                                    <p:graphicImage id="tab1Img" value="/images/godfather/godfather1.jpg" />  
                                                    <h:outputText id="tab1Text"  
                                                                  value="El ballet." />  
                                                </h:panelGrid>  
                                            </p:tab>  

                                            <p:tab id="tab2" title="Electronica Basica">  
                                                <h:panelGrid columns="2" cellpadding="10">  
                                                    <p:graphicImage id="tab2Img" value="/images/godfather/godfather2.jpg" />  
                                                    <h:outputText id="tab2Text" value="La salsa."/>  
                                                </h:panelGrid>  
                                            </p:tab>                   
                                        </p:tabView>    
                                    </h:panelGrid>
                                </p:tab>
                            </p:accordionPanel>
                              </p:tab>
                        </p:accordionPanel>
                    </h:form>
                </p:panel>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
            </ui:define>

        </ui:composition>

    </body>
</html>
